<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title>创建一个 EPUB</title>
  <link href="../Styles/styles.css" rel="stylesheet" type="text/css"/>
</head>

<body>
  <h2>为每个章节创建文件</h2>

  <p>If you loaded an HTML file into Sigil, this usually means all of your text and chapters are in one large file. This is okay, but the standard practice with EPUBs is to put each chapter in your book into a separate HTML file. The smaller file sizes are needed for some ereaders to read your book, but it is also faster to display and easier to edit.</p>
  <p>如果将 HTML 文件加载到 Sigil 中，通常意味着所有文本和章节都在一个大文件中。虽然可以，但是 EPUB 的标准做法是将书中的每一章放入单独的 HTML 文件中。一些电子阅读器需要较小的文件大小才能阅读您的书，但显示速度更快，更易于编辑。</p>

  <div class="tip">
    <p class="tiptext">Since most ereaders start a new file in the EPUB on a new page, it means your chapters will also start on a new page.</p>
    <p class="tiptext">由于大多数阅读器会在新页面上的EPUB中启动新文件，因此这意味着您的章节也会在新页面上开始。</p>
  </div>

  <h3 class="sigil_not_in_toc">每章创建一个文件</h3>

  <p>The easiest way to split your book into separate files is to use the Split At Cursor button <img alt="split-section_22px" src="../Images/split-section_22px.png"/> wherever you want to start a new file.</p>
  <p>将您的书拆分为单独文件的最简单方法是使用“在光标处拆分”按钮 <img alt="split-section_22px" src="../Images/split-section_22px.png"/> 文件。</p>

  <p>For example, to start a chapter on a new page, click just to the left of the chapter heading so that your cursor is at the start of the line:</p>
  <p>例如，要在新页面上开始一个章节，请单击章节标题左侧的，使光标位于该行的开头：</p>

  <div class="image">
    <img alt="tutorial-split-select" src="../Images/tutorial-split-select.png"/>
  </div>

  <p>Now click the Split At Cursor button <img alt="split-section_22px" src="../Images/split-section_22px.png"/> to split the text into two parts:</p>
  <p>现在，单击“在光标处分割”按钮 <img alt="split-section_22px" src="../Images/split-section_22px.png"/> 将文本分为两部分：</p>

  <div class="image">
    <img alt="tutorial-split-2" src="../Images/tutorial-split-2.png"/>
  </div>

  <p>You can see that everything after where you split is now in a new file called "Section0001.html".</p>
  <p>您可以看到拆分后的所有内容现在都在一个名为“Section0001.html”的新文件中。</p>

  <p>If you look at the original file you can see it only contains the text before where you split:</p>
  <p>如果查看原始文件，则可以看到它仅包含分割前的文本：</p>

  <div class="image">
    <img alt="tutorial-split-1" src="../Images/tutorial-split-1.png"/>
  </div>

  <p>You can continue splitting every chapter in your book, and putting any section that should start on a new page in a separate file.</p>
  <p>您可以继续拆分书中的每一章，并将应从新页开始的任何部分放在单独的文件中。</p>

  <p>If you want to rename your files, see the <a href="../Text/book_browser.html#book_browser_rename">Rename</a> section. This includes how to rename many files at once, e.g. Chapter_1, Chapter_2, etc..</p>
  <p>如果要重命名文件，请参见 <a href="../Text/book_browser.html#book_browser_rename">重命名</a> 部分。这包括如何一次重命名许多文件，例如 Chapter_1，Chapter_2 等。</p>

  <div class="tip">
    <p class="tiptext">See the <a href="../Text/splitting_and_merging.html">Splitting and Merging</a> chapter for more details – including how to insert Split Markers and split every file at once.</p>
    <p class="tiptext">有关更多详细信息，请参见 <a href="../Text/splitting_and_merging.html">拆分和合并</a> 一章，包括如何插入拆分标记并一次拆分每个文件。</p>
  </div>
</body>
</html>